MOVEFIRST, MOVELAST, MOVENEXT, MOVEPREVIOUS Statements ---------------------------------------------------------------------------- Action Make records current according to their relative position in an ISAM table. Syntax MOVEFIRST # filenumber% MOVELAST # filenumber% MOVENEXT # filenumber% MOVEPREVIOUS # filenumber% Remarks The filenumber% is the number used in the OPEN statement to open the table. The MOVEFIRST, MOVELAST, MOVENEXT, and MOVEPREVIOUS statements allow you to make records current according to their relative position on the current index in an ISAM table. ----------------------------------------------------------------------------- Statement Effect ---------------------------------------------------------------------------- MOVEFIRST First record becomes current. MOVELAST Last record becomes current. MOVENEXT Next record becomes current. MOVEPREVIOUS Previous record becomes current. The action of these statements is made relative to the record that is current according to the current index. Using MOVEPREVIOUS when the first indexed record is current moves the current position to the beginning of the table. The beginning of an ISAM table is the position before the first record according to the current index. Using MOVENEXT when the last indexed record is current moves the current position to the end of the table. The end of an ISAM table is the position following the last record according to the current index. See Also BOF; EOF; SEEKGT, SEEKGE, SEEKEQ Example See the CREATEINDEX statement programming example, which uses the MOVEFIRST, MOVELAST, MOVENEXT, and MOVEPREVIOUS statements.